package com.cenwangkeji.resident.ui.adapter;

import android.support.annotation.Nullable;

import com.cenwangkeji.resident.R;
import com.cenwangkeji.resident.model.bean.AssessBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * @松 on 2019/10/29 10:37
 * 评估适配器
 */
public class AssessAdapter extends BaseQuickAdapter<AssessBean.DataBean, BaseViewHolder> {
    public AssessAdapter( @Nullable List<AssessBean.DataBean> data) {
        super(R.layout.item_assess, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, AssessBean.DataBean item) {
        helper.setText(R.id.tv_name, "姓名："+item.getXm());
        helper.setText(R.id.tv_content,"内容："+item.getContent());
        helper.setText(R.id.tv_date,item.getCreateDate());

    }
}
